/**
 *  Common js utilities of PDK plugin
 */
 
// ajaxLoad class
// Adds loading slyle for the block. block - jQuery selector
function pdk_add_loading_style(block) {
    jQuery(block).css('position','relative');
    jQuery(block).css('opacity','0.5');
    jQuery(block).prepend('<span class="image_loading" style="position: absolute; right: 0; top: 0;"><img alt="" src="/prive/images/searching.gif" /></span>');
}
// Removes loading slyle from the block. block - jQuery selector
function pdk_remove_loading_style(block){
    jQuery(block).css('opacity','1');
    jQuery(block).find('.image_loading').remove();
}